package com.cz.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>订单操作</p>
 * <p>
 * <pre>
 * @author gitamacai
 * @date 2019/12/10 16:10
 * </pre>
 */
@FeignClient(name = "order-service")
public interface OrderFeignClient {

    /**
     * 创建订单
     *
     * @param userId        用户id
     * @param commodityCode 商品code
     * @param count         数量
     */
    @GetMapping("/order/create")
    void create(@RequestParam("userId") String userId,
                @RequestParam("commodityCode") String commodityCode,
                @RequestParam("count") Integer count);

}